﻿package com.wnhz.mayabunny;

import android.app.ActionBar;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;//
//2016-liaojianghan2129  TEST----9uuu
public class Myself_Favourite extends Activity implements OnClickListener {
	private ImageView leftBtn, rightBtn;
	private TextView middleTitle;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.myself_favourite);
//		initActionBar();
	}

	private void initActionBar() {
		ActionBar actionBar = getActionBar();
		actionBar.setDisplayHomeAsUpEnabled(true);
		actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
		actionBar.setCustomView(R.layout.actionbar);

		leftBtn = (ImageView) actionBar.getCustomView().findViewById(
				R.id.leftbtn);
		rightBtn = (ImageView) actionBar.getCustomView().findViewById(
				R.id.rightbtn);
		middleTitle = (TextView) actionBar.getCustomView().findViewById(
				R.id.middleTitle);
		middleTitle.setText("ÊÕ²Ø");
		middleTitle.setTextSize(26);
		middleTitle.setTextColor(Color.BLUE);

		leftBtn.setOnClickListener(this);
		rightBtn.setVisibility(8);
	}

	@Override
	public void onClick(View arg0) {
		switch (arg0.getId()) {
		case R.id.leftbtn:
			finish();
			break;
		default:
			break;
		}

	}
}